﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SelectSend.aspx.cs" Inherits="RGPWEB.EN.OrderS.SelectSend" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<link href="../../inc/Style/index.css" rel="Stylesheet" type="text/css" />
<link href="../../inc/Style/contentstyle.css" rel="Stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="../../inc/script/pub.js"></script>
<link href="../../inc/Style/GridView.css" rel="Stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">      

        function returnwin(listnum) {
            //window.opener.document.getElementById("txt_sendmen").value = listnum.split("|")[0];

            if (IsEmpty(listnum.split("|")[0])) {
                window.opener.document.getElementById("txt_sendmen").value = listnum.split("|")[0];
            } //返回值分别赋值给相关文本框
            if (IsEmpty(listnum.split("|")[1])) {
                window.opener.document.getElementById("txt_sendcompany").value = listnum.split("|")[1];
            }
            //if (IsEmpty(listnum.split("|")[2])) {
              //  window.opener.document.getElementById("txt_sendref").value = listnum.split("|")[2];
            //}
            if (IsEmpty(listnum.split("|")[2])) {
                window.opener.document.getElementById("txt_sendtel").value = listnum.split("|")[2];
            }  //返回值分别赋值给相关文本框
            if (IsEmpty(listnum.split("|")[3])) {
                window.opener.document.getElementById("txt_sendeid").value = listnum.split("|")[3];
            }
            if (IsEmpty(listnum.split("|")[4])) {
                window.opener.document.getElementById("txt_sendcity").value = listnum.split("|")[4];
            }
            if (IsEmpty(listnum.split("|")[5])) {
                window.opener.document.getElementById("txt_sendpostcode").value = listnum.split("|")[5];
            }  //返回值分别赋值给相关文本框
            if (IsEmpty(listnum.split("|")[6])) {
                window.opener.document.getElementById("txt_sendadd").value = listnum.split("|")[6];
            }
            window.close();
        }       
    </script>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
        <div>
         <fieldset id="10" style="width:98%">
            <legend>Search Conditions</legend>
            <table style="width:100%;">
                <tr>
                    <td>
                        Sender：</td>
                    <td>
                        <asp:TextBox ID="txt_sendmen_search" runat="server"></asp:TextBox>
                    </td>
                    <td>
                            <asp:Panel ID="pal_manager" runat="server">
                                Customer：<asp:ComboBox ID="cmb_list" runat="server" AutoCompleteMode="SuggestAppend" 
                                    DropDownStyle="DropDownList">
                                </asp:ComboBox>
                            <asp:ToolkitScriptManager ID="ScriptManager1" runat="server" />
                            </asp:Panel>
                    </td>
                    <td>
                        <asp:Button ID="btn_search" runat="server" Text="Search" 
                            onclick="btn_search_Click" /></td>
                </tr>
                </table>
            </fieldset>
        <fieldset id="Fieldset2" style="width:98%">
                <legend> Sender's address List</legend>
                <asp:GridView ID="grv_list" runat="server" 
                    AutoGenerateColumns="False" DataKeyNames ="S_ID" onrowdatabound="grv_list_RowDataBound" 
                    CssClass="Grid" AllowSorting="True">
                    <FooterStyle CssClass="GridFooter" />
                    <RowStyle CssClass="Row" />
                    <HeaderStyle CssClass="HeadingCell" />
                    <Columns>
                        <asp:BoundField HeaderText="Sender" DataField="S_Men" ItemStyle-Width="10%" >
<ItemStyle Width="10%"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField HeaderText="Companies" DataField="S_Name" ItemStyle-Width="10%" >
<ItemStyle Width="10%"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField HeaderText="Tel" DataField="S_Tel" ItemStyle-Width="10%">
<ItemStyle Width="10%"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField HeaderText="EID" DataField="S_EID" ItemStyle-Width="10%">
<ItemStyle Width="10%"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField HeaderText ="CityName" DataField="S_StartCity" ItemStyle-Width="10%">    
                        <ItemStyle Width="10%"></ItemStyle>       
                        </asp:BoundField>             
                        <asp:BoundField HeaderText="Zip Code" DataField="S_PostCode" ItemStyle-Width="10%">
<ItemStyle Width="10%"></ItemStyle>
                        </asp:BoundField>
                        <asp:BoundField HeaderText="Address" DataField="S_Add" ItemStyle-Width="20%">
<ItemStyle Width="20%"></ItemStyle>
                        </asp:BoundField>
                    </Columns>
                </asp:GridView>
                <webdiyer:AspNetPager ID="anp_list" runat="server" HorizontalAlign="Center" 
                    Width="100%" PageIndexBoxType="DropDownList" 
                    PageSize="10" CssClass="paginator" CurrentPageButtonClass="cpb"
                    FirstPageText="First" LastPageText="Last" NextPageText="Next" PrevPageText="UP" 
                    onpagechanging="anp_list_PageChanging">
                </webdiyer:AspNetPager>
             </fieldset>
    </div>
    </form>
</body>
</html>
